from django.conf.urls import url, include
from django.contrib import admin

from . import views

urlpatterns = [

    #1图片验证码 image_codes/(?P<uuid>[\w-]+)/
    url(r'^image_codes/(?P<uuid>[\w-]+)/$',views.ImageCodesView.as_view(),name="image_codes/"),

    #2.短信验证码 /sms_codes/(?P<mobile>1[3-9]\d{9})/
    url(r'^sms_codes/(?P<mobile>[\w-]+)/$', views.SmsCodeView.as_view(), name="sms_codes/"),

]